#include "googletakeout.h" // for GoogleTakeoutFormat
-#define MYNAME "vecs"
-
template <typename T>
Format* fmtfactory(const QString& filename)
{
- static_assert(std::is_base_of<Format, T>::value, "T must be derived from Format");
+ static_assert(std::is_base_of_v<Format, T>, "T must be derived from Format");
return new T(filename);
}
* that we are not modifying a Qt COW copy.
* Qt has an undocumented but public member function isDetached().
* If the list is detached it implies it is not shared, then functions
- * then might detach, like the iterator begin which is implicitly used
+ * that might detach, like the iterator begin which is implicitly used
* in the range based for loop, won't cause a copy to be created.
* We can make sure this is true for at least our regression cases
* with assertions.
* so we have to exclude this from the check.
* The possibility of detachment is also why the type of element
* on the list must be default constructable. This is why we have
- * to supply a default for any const members of arglist_t. Without
- * the default the default constructor would be implicitly deleted.
+ * to supply a default for any const members of arglist_t. Without the
+ * default intializer the default constructor would be implicitly deleted.
*/
void Vecs::init_vec(Format* fmt)
}
/*
- * For style based formats let xcsv know the style file. Otherwise
+ * For style based formats let xcsv know the style file. Otherwise,
* make sure xcsv knows no style file is in use. This covers the case
- * that we are processing xcsv,style= and it was preceeded by an xcsv
+ * that we are processing xcsv,style= and it was preceded by a xcsv
* format that utilized an internal style file.
*/
auto* xcsvfmt = dynamic_cast<XcsvFormat*>(fmtdata.fmt);
QString rval; // null
for (const auto& option : options) {
- int split = option.indexOf('=');
+ auto split = option.indexOf('=');
const QString option_name = option.left(split);
if (option_name.compare(argname, Qt::CaseInsensitive) == 0) {
/*
std::for_each(ignorelist.cbegin(), ignorelist.cend(), [this](const QString& tag)->void {
xg_shortcut_taglist.insert(tag, xg_shortcut::sc_ignore);
});
-
+
std::for_each(skiplist.cbegin(), skiplist.cend(), [this](const QString& tag)->void {
xg_shortcut_taglist.insert(tag, xg_shortcut::sc_skip);
});